package com.chenlei.order;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@EnableDiscoveryClient
public class OrderApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(OrderApplication.class, args);

        //获取Nacos Config里的用户名信息
        //String userName = context.getEnvironment().getProperty("nacosconfig.name");
        //System.out.println("获取Nacos Config里的用户名信息-nacosconfig: " + userName);

    }

}
